package com.roc.steelend.controller;


import com.roc.steelend.pojo.PayTake;
import com.roc.steelend.service.PayTakeService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@CrossOrigin
@Api(tags = "支付/收款方式功能接口")
public class PayTakeController {

    @Autowired
    private PayTakeService payTakeService;

    @GetMapping("/v1/paytake/find/all")
    public List<PayTake> findAllPayTake(){

        return  payTakeService.findAllPayTake();
    }
}
